
package com.insigma.business.qrcode.common.dao;


import com.insigma.business.qrcode.common.dto.CommonFavoriteBSearcher;
import com.insigma.business.qrcode.common.dto.CommonFavoriteDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CommonFavoriteDao {

    
    List<CommonFavoriteDO> search(final CommonFavoriteBSearcher innerSearcher);

    
    CommonFavoriteDO get(final String id);

    
    Integer insert(final CommonFavoriteDO commonFavoriteDO);

    
    Integer update(final CommonFavoriteDO commonFavoriteDO);

    
    Integer delete(@Param("id") final String id,
                   @Param("modifierType") final String modifierType,
                   @Param("modifierId") final String modifierId);

    CommonFavoriteDO getBySoldierIdAndType(@Param("soldierId")String soldierId, @Param("type")String type);

    Integer countByTypeAndId(@Param("type")String type, @Param("bizId")String bizId);

    CommonFavoriteDO getBySoldierIdAndTypeAndBizId(@Param("soldierId")String soldierId, @Param("type")String type, @Param("bizId")String bizId);

    List<CommonFavoriteDO> searchMerchant(CommonFavoriteBSearcher commonFavoriteBSearcher);
}
